Multiple modules specified through NLS

Hey all. I've ot a DXL script that is summarising information that is coming in through linked objects in other modules. The original DXL uses the NLS function to grab a single module:

const string cLinkModuleName = (NLS_("/Module name"))

But I'd like to be able to specify multiple modules. The rest of the script essentially goes to the named module and pulls out information. I'm being an idiot in all likelyhood, but can't find the syntax to make this happen.

Thoughts?


EnemyoftheLight - Wed Dec 03 10:36:11 EST 2014

Re: Multiple modules specified through NLS
GregM_dxler - Thu Dec 04 08:56:04 EST 2014

Hi EOTL,

Not sure what you mean by "specify multiple modules".  The NLS command only looks like it is grabbing the module handle from the module itself.  You wouldn't want to have multiple handles in a single variable.  Personally I shy away from using NLS_ and other commands like this because I have no documentation on what they do or if they will remain available from version to version of DOORS.  But that is my own personal preference.

If your looping through inlinks and want information from links that go through different link modules, there are a couple of ways to do that.

1) Make a separate loop for each link module

2) Make a loop for links going through all link modules and then inside the loop check if the link module is one that your interested in.  If not, then just continue in the loop to the next inlink.

Hope this helps,
Greg